//
//  DECXDeliveryPayTableCell.m
//  DECXInStore
//
//  Created by 李坤 on 2019/12/19.
//  Copyright © 2019 程强. All rights reserved.
//

#import "DECXDeliveryPayTableCell.h"

@interface DECXDeliveryPayTableCell ()
@property (strong, nonatomic) void(^payBlock)(void);
@property (strong, nonatomic) void(^cancelBlock)(void);
@end

@implementation DECXDeliveryPayTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)payClick:(id)sender {
    if (self.payBlock) {
        self.payBlock();
    }
}
- (IBAction)cancelClick:(id)sender
{
    if (self.cancelBlock) {
        self.cancelBlock();
    }
}
- (void)payOrderHandler:(void(^)(void))block
{
    self.payBlock = block;
}
- (void)cancelOrderHandler:(void(^)(void))block
{
    self.cancelBlock = block;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
